
public class Account {
	protected int accountNumber;
	protected int accountType;
	protected String accountHolder;
	protected double balance;
	protected double withdrawLimit = 200.00;
	protected double balanceLimit = 5000.00;
	protected static final int CHECKING_ACCOUNT = 100;
	protected static final int SAVINGS_ACCOUNT = 200;

	public Account(String name, int accountNum) {
		accountHolder = name;
		accountNumber = accountNum;
		balance = 0.00;
	}
	
	public Account(String name, int accountNum, double originalBalance) {
		accountHolder = name;
		accountNumber = accountNum;
		deposit(originalBalance);
	}
	
	public boolean withdraw(double amount) {
		if (amount < balance && amount < withdrawLimit) {
			balance -= amount;
			return true;
		}
		else
			return false;
	}
	
	public boolean deposit(double amount) {
		if ((balance + amount) <= balanceLimit) {
			balance += amount;
			return true;
		}
		else
			return false;
	}
	
	public double checkBalance() {
		return balance;
	}

	
	public double getWithdrawLimit() {
		return withdrawLimit;
	}

	public void setWithdrawLimit(double withdrawLimit) {
		this.withdrawLimit = withdrawLimit;
	}

	public double getBalanceLimit() {
		return balanceLimit;
	}

	public void setBalanceLimit(double balanceLimit) {
		this.balanceLimit = balanceLimit;
	}

	public int getAccountNumber() {
		return accountNumber;
	}

	public int getAccountType() {
		return accountType;
	}

	public String getAccountHolder() {
		return accountHolder;
	}
}
